

<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="python" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="python" > <!--<![endif]-->
<head>
  <meta charset="utf-8">
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
  <title>QUANTAXIS.QASU.main &mdash; QUANTAXIS 1.0.39 documentation</title>
  

  
  
  
  

  

  
  
    

  

  
    <link rel="stylesheet" href="../../../_static/css/theme.css" type="text/css" />
  <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
    <link rel="index" title="Index" href="../../../genindex.html" />
    <link rel="search" title="Search" href="../../../search.html" /> 

  
  <script src="../../../_static/js/modernizr.min.js"></script>

</head>

<body class="wy-body-for-nav">

   
  <div class="wy-grid-for-nav">

    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search">
          

          
            <a href="../../../index.html" class="icon icon-home"> QUANTAXIS
          

          
          </a>

          
            
            
              <div class="version">
                1.0.39
              </div>
            
          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <!-- Local TOC -->
              <div class="local-toc"></div>
            
          
        </div>
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../../../index.html">QUANTAXIS</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="../../../index.html">Docs</a> &raquo;</li>
        
          <li><a href="../../index.html">Module code</a> &raquo;</li>
        
      <li>QUANTAXIS.QASU.main</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
      </li>
    
  </ul>

  
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
  <h1>Source code for QUANTAXIS.QASU.main</h1><div class="highlight"><pre>
<span></span><span class="c1">#</span>
<span class="c1"># The MIT License (MIT)</span>
<span class="c1">#</span>
<span class="c1"># Copyright (c) 2016-2018 yutiansut/QUANTAXIS</span>
<span class="c1">#</span>
<span class="c1"># Permission is hereby granted, free of charge, to any person obtaining a copy</span>
<span class="c1"># of this software and associated documentation files (the &quot;Software&quot;), to deal</span>
<span class="c1"># in the Software without restriction, including without limitation the rights</span>
<span class="c1"># to use, copy, modify, merge, publish, distribute, sublicense, and/or sell</span>
<span class="c1"># copies of the Software, and to permit persons to whom the Software is</span>
<span class="c1"># furnished to do so, subject to the following conditions:</span>
<span class="c1">#</span>
<span class="c1"># The above copyright notice and this permission notice shall be included in all</span>
<span class="c1"># copies or substantial portions of the Software.</span>
<span class="c1">#</span>
<span class="c1"># THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span>
<span class="c1"># IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span>
<span class="c1"># FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE</span>
<span class="c1"># AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span>
<span class="c1"># LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,</span>
<span class="c1"># OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE</span>
<span class="c1"># SOFTWARE.</span>

<span class="kn">from</span> <span class="nn">QUANTAXIS.QASU</span> <span class="k">import</span> <span class="n">save_tdx</span> <span class="k">as</span> <span class="n">stdx</span>
<span class="kn">from</span> <span class="nn">QUANTAXIS.QASU</span> <span class="k">import</span> <span class="n">save_tdx_file</span> <span class="k">as</span> <span class="n">tdx_file</span>
<span class="kn">from</span> <span class="nn">QUANTAXIS.QASU</span> <span class="k">import</span> <span class="n">save_tushare</span> <span class="k">as</span> <span class="n">sts</span>
<span class="kn">from</span> <span class="nn">QUANTAXIS.QAUtil</span> <span class="k">import</span> <span class="n">DATABASE</span>

<span class="kn">from</span> <span class="nn">QUANTAXIS.QASU</span> <span class="k">import</span> <span class="n">crawl_eastmoney</span> <span class="k">as</span> <span class="n">crawl_eastmoney_file</span>



<div class="viewcode-block" id="QA_SU_save_stock_info"><a class="viewcode-back" href="../../../source/QUANTAXIS.QASU.html#QUANTAXIS.QASU.main.QA_SU_save_stock_info">[docs]</a><span class="k">def</span> <span class="nf">QA_SU_save_stock_info</span><span class="p">(</span><span class="n">engine</span><span class="p">,</span> <span class="n">client</span><span class="o">=</span><span class="n">DATABASE</span><span class="p">):</span>
    <span class="sd">&quot;&quot;&quot;save stock info</span>
<span class="sd">    </span>
<span class="sd">    Arguments:</span>
<span class="sd">        engine {[type]} -- [description]</span>
<span class="sd">    </span>
<span class="sd">    Keyword Arguments:</span>
<span class="sd">        client {[type]} -- [description] (default: {DATABASE})</span>
<span class="sd">    &quot;&quot;&quot;</span>

    <span class="n">engine</span> <span class="o">=</span> <span class="n">select_save_engine</span><span class="p">(</span><span class="n">engine</span><span class="p">)</span>
    <span class="n">engine</span><span class="o">.</span><span class="n">QA_SU_save_stock_info</span><span class="p">(</span><span class="n">client</span><span class="o">=</span><span class="n">client</span><span class="p">)</span></div>


<div class="viewcode-block" id="QA_SU_save_stock_info_tushare"><a class="viewcode-back" href="../../../source/QUANTAXIS.QASU.html#QUANTAXIS.QASU.main.QA_SU_save_stock_info_tushare">[docs]</a><span class="k">def</span> <span class="nf">QA_SU_save_stock_info_tushare</span><span class="p">(</span><span class="n">engine</span><span class="o">=</span><span class="s2">&quot;tushare&quot;</span><span class="p">,</span> <span class="n">client</span><span class="o">=</span><span class="n">DATABASE</span><span class="p">):</span>
    <span class="sd">&#39;&#39;&#39;</span>

<span class="sd">    :param engine: tushare</span>
<span class="sd">    :param client:</span>
<span class="sd">    :return: None</span>
<span class="sd">    &#39;&#39;&#39;</span>

    <span class="c1"># only support the tushare</span>
    <span class="n">engine</span> <span class="o">=</span> <span class="n">select_save_engine</span><span class="p">(</span><span class="s2">&quot;tushare&quot;</span><span class="p">)</span>
    <span class="n">engine</span><span class="o">.</span><span class="n">QA_SU_save_stock_info_tushare</span><span class="p">()</span>

    <span class="k">pass</span></div>


<div class="viewcode-block" id="QA_SU_save_stock_list"><a class="viewcode-back" href="../../../source/QUANTAXIS.QASU.html#QUANTAXIS.QASU.main.QA_SU_save_stock_list">[docs]</a><span class="k">def</span> <span class="nf">QA_SU_save_stock_list</span><span class="p">(</span><span class="n">engine</span><span class="p">,</span> <span class="n">client</span><span class="o">=</span><span class="n">DATABASE</span><span class="p">):</span>
    <span class="sd">&quot;&quot;&quot;save stock_list</span>
<span class="sd">    </span>
<span class="sd">    Arguments:</span>
<span class="sd">        engine {[type]} -- [description]</span>
<span class="sd">    </span>
<span class="sd">    Keyword Arguments:</span>
<span class="sd">        client {[type]} -- [description] (default: {DATABASE})</span>
<span class="sd">    &quot;&quot;&quot;</span>

    <span class="n">engine</span> <span class="o">=</span> <span class="n">select_save_engine</span><span class="p">(</span><span class="n">engine</span><span class="p">)</span>
    <span class="n">engine</span><span class="o">.</span><span class="n">QA_SU_save_stock_list</span><span class="p">(</span><span class="n">client</span><span class="o">=</span><span class="n">client</span><span class="p">)</span></div>


<div class="viewcode-block" id="QA_SU_save_stock_day"><a class="viewcode-back" href="../../../source/QUANTAXIS.QASU.html#QUANTAXIS.QASU.main.QA_SU_save_stock_day">[docs]</a><span class="k">def</span> <span class="nf">QA_SU_save_stock_day</span><span class="p">(</span><span class="n">engine</span><span class="p">,</span> <span class="n">client</span><span class="o">=</span><span class="n">DATABASE</span><span class="p">):</span>
    <span class="sd">&quot;&quot;&quot;save stock_day</span>
<span class="sd">    </span>
<span class="sd">    Arguments:</span>
<span class="sd">        engine {[type]} -- [description]</span>
<span class="sd">    </span>
<span class="sd">    Keyword Arguments:</span>
<span class="sd">        client {[type]} -- [description] (default: {DATABASE})</span>
<span class="sd">    &quot;&quot;&quot;</span>

    <span class="n">engine</span> <span class="o">=</span> <span class="n">select_save_engine</span><span class="p">(</span><span class="n">engine</span><span class="p">)</span>
    <span class="n">engine</span><span class="o">.</span><span class="n">QA_SU_save_stock_day</span><span class="p">(</span><span class="n">client</span><span class="o">=</span><span class="n">client</span><span class="p">)</span></div>


<div class="viewcode-block" id="QA_SU_save_stock_min"><a class="viewcode-back" href="../../../source/QUANTAXIS.QASU.html#QUANTAXIS.QASU.main.QA_SU_save_stock_min">[docs]</a><span class="k">def</span> <span class="nf">QA_SU_save_stock_min</span><span class="p">(</span><span class="n">engine</span><span class="p">,</span> <span class="n">client</span><span class="o">=</span><span class="n">DATABASE</span><span class="p">):</span>
    <span class="sd">&quot;&quot;&quot;save stock_min</span>
<span class="sd">    </span>
<span class="sd">    Arguments:</span>
<span class="sd">        engine {[type]} -- [description]</span>
<span class="sd">    </span>
<span class="sd">    Keyword Arguments:</span>
<span class="sd">        client {[type]} -- [description] (default: {DATABASE})</span>
<span class="sd">    &quot;&quot;&quot;</span>

    <span class="n">engine</span> <span class="o">=</span> <span class="n">select_save_engine</span><span class="p">(</span><span class="n">engine</span><span class="p">)</span>
    <span class="n">engine</span><span class="o">.</span><span class="n">QA_SU_save_stock_min</span><span class="p">(</span><span class="n">client</span><span class="o">=</span><span class="n">client</span><span class="p">)</span></div>


<div class="viewcode-block" id="QA_SU_save_index_day"><a class="viewcode-back" href="../../../source/QUANTAXIS.QASU.html#QUANTAXIS.QASU.main.QA_SU_save_index_day">[docs]</a><span class="k">def</span> <span class="nf">QA_SU_save_index_day</span><span class="p">(</span><span class="n">engine</span><span class="p">,</span> <span class="n">client</span><span class="o">=</span><span class="n">DATABASE</span><span class="p">):</span>
    <span class="sd">&quot;&quot;&quot;save index_day</span>
<span class="sd">    </span>
<span class="sd">    Arguments:</span>
<span class="sd">        engine {[type]} -- [description]</span>
<span class="sd">    </span>
<span class="sd">    Keyword Arguments:</span>
<span class="sd">        client {[type]} -- [description] (default: {DATABASE})</span>
<span class="sd">    &quot;&quot;&quot;</span>

    <span class="n">engine</span> <span class="o">=</span> <span class="n">select_save_engine</span><span class="p">(</span><span class="n">engine</span><span class="p">)</span>
    <span class="n">engine</span><span class="o">.</span><span class="n">QA_SU_save_index_day</span><span class="p">(</span><span class="n">client</span><span class="o">=</span><span class="n">client</span><span class="p">)</span></div>


<div class="viewcode-block" id="QA_SU_save_index_min"><a class="viewcode-back" href="../../../source/QUANTAXIS.QASU.html#QUANTAXIS.QASU.main.QA_SU_save_index_min">[docs]</a><span class="k">def</span> <span class="nf">QA_SU_save_index_min</span><span class="p">(</span><span class="n">engine</span><span class="p">,</span> <span class="n">client</span><span class="o">=</span><span class="n">DATABASE</span><span class="p">):</span>
    <span class="sd">&quot;&quot;&quot;save index_min</span>
<span class="sd">    </span>
<span class="sd">    Arguments:</span>
<span class="sd">        engine {[type]} -- [description]</span>
<span class="sd">    </span>
<span class="sd">    Keyword Arguments:</span>
<span class="sd">        client {[type]} -- [description] (default: {DATABASE})</span>
<span class="sd">    &quot;&quot;&quot;</span>

    <span class="n">engine</span> <span class="o">=</span> <span class="n">select_save_engine</span><span class="p">(</span><span class="n">engine</span><span class="p">)</span>
    <span class="n">engine</span><span class="o">.</span><span class="n">QA_SU_save_index_min</span><span class="p">(</span><span class="n">client</span><span class="o">=</span><span class="n">client</span><span class="p">)</span></div>


<div class="viewcode-block" id="QA_SU_save_etf_day"><a class="viewcode-back" href="../../../source/QUANTAXIS.QASU.html#QUANTAXIS.QASU.main.QA_SU_save_etf_day">[docs]</a><span class="k">def</span> <span class="nf">QA_SU_save_etf_day</span><span class="p">(</span><span class="n">engine</span><span class="p">,</span> <span class="n">client</span><span class="o">=</span><span class="n">DATABASE</span><span class="p">):</span>
    <span class="sd">&quot;&quot;&quot;save etf_day</span>
<span class="sd">    </span>
<span class="sd">    Arguments:</span>
<span class="sd">        engine {[type]} -- [description]</span>
<span class="sd">    </span>
<span class="sd">    Keyword Arguments:</span>
<span class="sd">        client {[type]} -- [description] (default: {DATABASE})</span>
<span class="sd">    &quot;&quot;&quot;</span>

    <span class="n">engine</span> <span class="o">=</span> <span class="n">select_save_engine</span><span class="p">(</span><span class="n">engine</span><span class="p">)</span>
    <span class="n">engine</span><span class="o">.</span><span class="n">QA_SU_save_etf_day</span><span class="p">(</span><span class="n">client</span><span class="o">=</span><span class="n">client</span><span class="p">)</span></div>


<div class="viewcode-block" id="QA_SU_save_etf_min"><a class="viewcode-back" href="../../../source/QUANTAXIS.QASU.html#QUANTAXIS.QASU.main.QA_SU_save_etf_min">[docs]</a><span class="k">def</span> <span class="nf">QA_SU_save_etf_min</span><span class="p">(</span><span class="n">engine</span><span class="p">,</span> <span class="n">client</span><span class="o">=</span><span class="n">DATABASE</span><span class="p">):</span>
    <span class="sd">&quot;&quot;&quot;save etf_min</span>
<span class="sd">    </span>
<span class="sd">    Arguments:</span>
<span class="sd">        engine {[type]} -- [description]</span>
<span class="sd">    </span>
<span class="sd">    Keyword Arguments:</span>
<span class="sd">        client {[type]} -- [description] (default: {DATABASE})</span>
<span class="sd">    &quot;&quot;&quot;</span>

    <span class="n">engine</span> <span class="o">=</span> <span class="n">select_save_engine</span><span class="p">(</span><span class="n">engine</span><span class="p">)</span>
    <span class="n">engine</span><span class="o">.</span><span class="n">QA_SU_save_etf_min</span><span class="p">(</span><span class="n">client</span><span class="o">=</span><span class="n">client</span><span class="p">)</span></div>


<div class="viewcode-block" id="QA_SU_save_stock_xdxr"><a class="viewcode-back" href="../../../source/QUANTAXIS.QASU.html#QUANTAXIS.QASU.main.QA_SU_save_stock_xdxr">[docs]</a><span class="k">def</span> <span class="nf">QA_SU_save_stock_xdxr</span><span class="p">(</span><span class="n">engine</span><span class="p">,</span> <span class="n">client</span><span class="o">=</span><span class="n">DATABASE</span><span class="p">):</span>
    <span class="sd">&quot;&quot;&quot;save stock_xdxr</span>
<span class="sd">    </span>
<span class="sd">    Arguments:</span>
<span class="sd">        engine {[type]} -- [description]</span>
<span class="sd">    </span>
<span class="sd">    Keyword Arguments:</span>
<span class="sd">        client {[type]} -- [description] (default: {DATABASE})</span>
<span class="sd">    &quot;&quot;&quot;</span>

    <span class="n">engine</span> <span class="o">=</span> <span class="n">select_save_engine</span><span class="p">(</span><span class="n">engine</span><span class="p">)</span>
    <span class="n">engine</span><span class="o">.</span><span class="n">QA_SU_save_stock_xdxr</span><span class="p">(</span><span class="n">client</span><span class="o">=</span><span class="n">client</span><span class="p">)</span></div>

<div class="viewcode-block" id="QA_SU_save_stock_block"><a class="viewcode-back" href="../../../source/QUANTAXIS.QASU.html#QUANTAXIS.QASU.main.QA_SU_save_stock_block">[docs]</a><span class="k">def</span> <span class="nf">QA_SU_save_stock_block</span><span class="p">(</span><span class="n">engine</span><span class="p">,</span> <span class="n">client</span><span class="o">=</span><span class="n">DATABASE</span><span class="p">):</span>
    <span class="sd">&quot;&quot;&quot;save stock_block</span>
<span class="sd">    </span>
<span class="sd">    Arguments:</span>
<span class="sd">        engine {[type]} -- [description]</span>
<span class="sd">    </span>
<span class="sd">    Keyword Arguments:</span>
<span class="sd">        client {[type]} -- [description] (default: {DATABASE})</span>
<span class="sd">    &quot;&quot;&quot;</span>

    <span class="n">engine</span> <span class="o">=</span> <span class="n">select_save_engine</span><span class="p">(</span><span class="n">engine</span><span class="p">)</span>
    <span class="n">engine</span><span class="o">.</span><span class="n">QA_SU_save_stock_block</span><span class="p">(</span><span class="n">client</span><span class="o">=</span><span class="n">client</span><span class="p">)</span></div>



<div class="viewcode-block" id="select_save_engine"><a class="viewcode-back" href="../../../source/QUANTAXIS.QASU.html#QUANTAXIS.QASU.main.select_save_engine">[docs]</a><span class="k">def</span> <span class="nf">select_save_engine</span><span class="p">(</span><span class="n">engine</span><span class="p">):</span>
    <span class="sd">&#39;&#39;&#39;</span>
<span class="sd">    select save_engine , tushare ts Tushare 使用 Tushare 免费数据接口， tdx 使用通达信数据接口</span>
<span class="sd">    :param engine: 字符串Str</span>
<span class="sd">    :return: sts means save_tushare_py  or stdx means save_tdx_py</span>
<span class="sd">    &#39;&#39;&#39;</span>
    <span class="k">if</span> <span class="n">engine</span> <span class="ow">in</span> <span class="p">[</span><span class="s1">&#39;tushare&#39;</span><span class="p">,</span> <span class="s1">&#39;ts&#39;</span><span class="p">,</span> <span class="s1">&#39;Tushare&#39;</span><span class="p">]:</span>
        <span class="k">return</span> <span class="n">sts</span>
    <span class="k">elif</span> <span class="n">engine</span> <span class="ow">in</span> <span class="p">[</span><span class="s1">&#39;tdx&#39;</span><span class="p">]:</span>
        <span class="k">return</span> <span class="n">stdx</span>
    <span class="k">else</span><span class="p">:</span>
        <span class="nb">print</span><span class="p">(</span><span class="s1">&#39;💢 Error QASU.main.py call select_save_engine with parameter </span><span class="si">%s</span><span class="s1"> is None of  thshare, ts, Thshare, or tdx&#39;</span><span class="p">,</span><span class="n">engine</span><span class="p">)</span></div>

<div class="viewcode-block" id="QA_SU_save_stock_min_5"><a class="viewcode-back" href="../../../source/QUANTAXIS.QASU.html#QUANTAXIS.QASU.main.QA_SU_save_stock_min_5">[docs]</a><span class="k">def</span> <span class="nf">QA_SU_save_stock_min_5</span><span class="p">(</span><span class="n">file_dir</span><span class="p">,</span> <span class="n">client</span><span class="o">=</span><span class="n">DATABASE</span><span class="p">):</span>
    <span class="sd">&quot;&quot;&quot;save stock_min5</span>
<span class="sd">    </span>
<span class="sd">    Arguments:</span>
<span class="sd">        file_dir {[type]} -- [description]</span>
<span class="sd">    </span>
<span class="sd">    Keyword Arguments:</span>
<span class="sd">        client {[type]} -- [description] (default: {DATABASE})</span>
<span class="sd">    </span>
<span class="sd">    Returns:</span>
<span class="sd">        [type] -- [description]</span>
<span class="sd">    &quot;&quot;&quot;</span>

    <span class="k">return</span> <span class="n">tdx_file</span><span class="o">.</span><span class="n">QA_save_tdx_to_mongo</span><span class="p">(</span><span class="n">file_dir</span><span class="p">,</span> <span class="n">client</span><span class="p">)</span></div>


<div class="viewcode-block" id="QA_SU_crawl_eastmoney"><a class="viewcode-back" href="../../../source/QUANTAXIS.QASU.html#QUANTAXIS.QASU.main.QA_SU_crawl_eastmoney">[docs]</a><span class="k">def</span> <span class="nf">QA_SU_crawl_eastmoney</span><span class="p">(</span><span class="n">action</span><span class="o">=</span><span class="s2">&quot;zjlx&quot;</span><span class="p">,</span><span class="n">stockCode</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
    <span class="sd">&#39;&#39;&#39;</span>

<span class="sd">    :param action: zjlx 后期支持其他的操作类型</span>
<span class="sd">    :param stockCode: 股票代码</span>
<span class="sd">    :return:</span>
<span class="sd">    &#39;&#39;&#39;</span>
    <span class="k">return</span> <span class="n">crawl_eastmoney_file</span><span class="o">.</span><span class="n">QA_read_eastmoney_zjlx_web_page_to_sqllite</span><span class="p">(</span><span class="n">stockCode</span><span class="p">)</span></div>
</pre></div>

           </div>
           
          </div>
          <footer>
  

  <hr/>

  <div role="contentinfo">
    <p>
        &copy; Copyright 2018, yutiansut.

    </p>
  </div>
  Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. 

</footer>

        </div>
      </div>

    </section>

  </div>
  


  

    <script type="text/javascript">
        var DOCUMENTATION_OPTIONS = {
            URL_ROOT:'../../../',
            VERSION:'1.0.39',
            LANGUAGE:'python',
            COLLAPSE_INDEX:false,
            FILE_SUFFIX:'.html',
            HAS_SOURCE:  true,
            SOURCELINK_SUFFIX: '.txt'
        };
    </script>
      <script type="text/javascript" src="../../../_static/jquery.js"></script>
      <script type="text/javascript" src="../../../_static/underscore.js"></script>
      <script type="text/javascript" src="../../../_static/doctools.js"></script>
      <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>

  

  
  
    <script type="text/javascript" src="../../../_static/js/theme.js"></script>
  

  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script> 

</body>
</html>